﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="jquery-1.11.3.min.js"></script>
    <script src="jquery.metadata.js"></script>
    <script src="jquery.validate.js"></script>
    <script src="jquery.validate.zh-cn.js"></script>
	<meta charset="utf-8" />
</head>
<body>
    <form id="signupForm" method="get" action="">
        <p>
            <label for="firstname">Firstname</label>
            <input id="firstname" name="firstname" class="required" />
        </p>
        <p>
            <label for="email">E-Mail</label>
            <input id="email" name="email" class="required email" />
        </p>
        <p>
            <label for="password">Password</label>
            <input id="password" name="password" type="password" class="{minlength:5}" />
        </p>
        <p>
            <label for="sdsdsadsa">确认密码</label>
            <input id="sdsdsadsa" name="sdsdsadsa" type="password" class="{minlength:5,equalTo:'#password'}" />
        </p>
        <p>
            <input class="submit" type="submit" value="Submit" />
        </p>
    </form>
</body>
</html>

<script type="text/javascript">
    $().ready(function () {
        $("#signupForm").validate();
    });
</script>
